package com.baifc.datasource;

import com.baifc.entity.Spitter;
import org.springframework.stereotype.Component;

/**
 * projectName: spring-in-action-web
 * packageName: com.baifc.datasource
 * Created: 2019/5/21.
 * Auther: baifc
 * Description:
 */
@Component
public class SpitterRepository {

    public Spitter findByUsername() {
        Spitter spitter = new Spitter();
        spitter.setUsername("admin");
        spitter.setPassword("admin");
        return spitter;
    }

}
